import request from '@/utils/request'
import qs from 'qs';

// 收货日报新增
export function dailyaddreceive(data) {
    return request({
        url: `/system/shz/addRbShz`,
        method: 'post',
        data: data
    })
}
//  收货列表
export function dailylistreceive() {
    return request({
        url: `/system/shz/getTodayRbShz`,
        method: 'get',
    })
}
// 收货查询
export function dailyscreenlistreceive(query) {
    return request({
        url: `/system/shz/list`,
        method: 'get',
        params: query
    })
}
// 零货上架日报新增
export function dailyaddodd(data) {
    return request({
        url: `/system/lhsj/addRbLhsj`,
        method: 'post',
        data: data
    })
}
// 零货上架列表
export function dailylistodd() {
    return request({
        url: `/system/lhsj/getTodayRbLhsj`,
        method: 'get',
    })
}
// 零货上架查询
export function dailyscreenlistodd(query) {
    return request({
        url: `/system/lhsj/list`,
        method: 'get',
        params: query
    })
}
// 整件下架日报新增
export function dailyaddsold(data) {
    return request({
        url: `/system/zjxj/addRbZjxj`,
        method: 'post',
        data: data
    })
}
// 整件下架当前天查询
export function dailylistsold() {
    return request({
        url: `/system/zjxj/getTodayRbZjxj`,
        method: 'get',
    })
}
// 整件下架查询
export function dailyscreenlistsold(query) {
    return request({
        url: `/system/zjxj/list`,
        method: 'get',
        params: query
    })
}
// 整件上架日报新增
export function dailyaddshelf(data) {
    return request({
        url: `/system/zjsj/addRbZjsj`,
        method: 'post',
        data: data
    })
}
// 整件上架当前天查询
export function dailylistshelf() {
    return request({
        url: `/system/zjsj/getTodayRbZjsj`,
        method: 'get',
    })
}
// 整件上架查询
export function dailyscreenlistshelf(query) {
    return request({
        url: '/system/zjsj/list',
        method: 'get',
        params: query
    })
}
// 外复核日报新增
export function dailyaddexreview(data) {
    return request({
        url: '/system/wfh/addRbWfh',
        method: 'post',
        data: data
    })
}
// 外复核当前天查询
export function dailylistexreview(){
    return request({
        url:'/system/wfh/getTodayRbWfh',
        method:'get',
    })
}
// 外复核查询
export function dailyscreenexreview(query) {
    return request({
        url: '/system/wfh/list',
        method: 'get',
        params: query
    })
}

// 京东仓日报新增
export function dailyaddjdc(data) {
    return request({
        url: '/system/jdc/addRbJdc',
        method: 'post',
        data: data
    })
}
// 京东仓当前天查询
export function dailylistjdc(){
    return request({
        url:'/system/jdc/getTodayRbJdc',
        method:'get',
    })
}
// 京东仓查询
export function dailyscreenjdc(query) {
    return request({
        url: '/system/jdc/list',
        method: 'get',
        params: query
    })
}
// 中药仓日报新增
export function dailyaddzyc(data) {
    return request({
        url: '/system/zyc/addRbZyc',
        method: 'post',
        data: data
    })
}
// 中药仓当前天查询
export function dailylistzyc(){
    return request({
        url:'/system/zyc/getTodayRbZyc',
        method:'get',
    })
}
// 中药仓查询
export function dailyscreenzyc(query) {
    return request({
        url: '/system/zyc/list',
        method: 'get',
        params: query
    })
}
// 质量验收日报新增
export function dailyaddzlys(data) {
    return request({
        url: '/system/ys/addRbYs',
        method: 'post',
        data: data
    })
}
// 质量验收当前天查询
export function dailylistzlys(){
    return request({
        url:'/system/ys/getTodayRbYs',
        method:'get',
    })
}
// 质量验收查询
export function dailyscreenzlys(query) {
    return request({
        url: '/system/ys/list',
        method: 'get',
        params: query
    })
}

// 质量入库日报新增
export function dailyaddrk(data) {
    return request({
        url: '/system/rk/addRbRk',
        method: 'post',
        data: data
    })
}
// 质量入库当前天查询
export function dailylistrk(){
    return request({
        url:'/system/rk/getTodayRbRk',
        method:'get',
    })
}
// 质量入库查询
export function dailyscreenrk(query) {
    return request({
        url: '/system/rk/list',
        method: 'get',
        params: query
    })
}
// 调度日历数据
export function calendarlist(query) {
    return request({
        url: '/system/count/list',
        method: 'get',
        params: query
    })
}
// 日报导出
export function dailyExport(data,urls) {
    return request({
        url: urls,
        method: 'post',
        data: data,
        responseType: 'blob'
    })
}